const sqLdStationsApi = {}

import http from '@/plugin/axios'
import {viewApi} from '@/config/env'

/**
 * @Author ling.yuan@topevery.club
 * @Date 2020/05/24 09:24:49
 * @Description 获取停车场数据
 */
sqLdStationsApi.getLdStationsTotal = () => {
  return http.$GET(`/${viewApi}/sqLdStations/getLdStationsTotal`)
}
/**
 * @Author ling.yuan@topevery.club
 * @Date 2020/05/30 10:27:27
 * @Description 根据groupId获取路灯
 */
sqLdStationsApi.getLdStationsByGroupId = (id) => {
  return http.$GET(`/${viewApi}/sqLdStations/getLdStationsByGroupId/${id}`)
}
export default sqLdStationsApi
